package com.example.backend.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Response<T> {
    public static final int SUCCESS = 200;
    public static final int FAIL = 201;

    private Integer code;   // 为各种状态进行编码
    private String msg;    // 详细信息
    private T data;         // 返回的数据
}
